package com.zl.util
{
	import cn.skyclass.net.URLUtilEx;

	public class ParamParser
	{
		public function ParamParser(parameters:Object)
		{
			_parammeters = parameters;
			init();
		}
		
		private var _parammeters:Object;
		
		public var userId:String;//用户ID
		public var urlPrefix:String;//资源加载地址前缀 
		public var contextPath:String;//RO工程contextPath
		public var plId:int;//生产线
		public var prId:int;//CPK转向架工序ID
		
		private function init():void{
			userId = _parammeters.userId ? _parammeters.userId : 'sys';
			urlPrefix = _parammeters.urlPrefix ? _parammeters.urlPrefix : '';
			contextPath = _parammeters.contextPath ? _parammeters.contextPath : URLUtilEx.getContextPath();
			plId = _parammeters.plId ? _parammeters.plId : 0;
			prId = _parammeters.prId ? _parammeters.prId : 0;
		}
		
	}
}